package com.podcstr.service.exception;

import javax.validation.ConstraintViolation;
import java.util.Set;

/**
 * @author azim
 * @since 12/5/13 
 */
@javax.ejb.ApplicationException(rollback = true)
public class ApplicationException extends Exception {
    private Set<ConstraintViolation<?>> violations;

    public ApplicationException() {
    }

    public ApplicationException(String message) {
        super(message);
    }

    public ApplicationException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApplicationException(Throwable cause) {
        super(cause);
    }

    public ApplicationException(Set<ConstraintViolation<?>> violations) {
        this.violations = violations;
    }

    public Set<ConstraintViolation<?>> getViolations() {
        return violations;
    }

    public void setViolations(Set<ConstraintViolation<?>> violations) {
        this.violations = violations;
    }
}
